import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SOperationOnlineMsg
    
    export  class SOperationOnlineMsg extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SOperationOnlineMsg();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.cmdType);
            arg1.writeInt(this.operObj);
            arg1.writeInt(this.operValue);
            arg1.writeInt(this.operValueEx);
            arg1.writeInt(this.operValueEx2);
            arg1.writeLong(this.recordId);
            arg1.writeString(this.operStr);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.cmdType = arg1.readInt();
            this.operObj = arg1.readInt();
            this.operValue = arg1.readInt();
            this.operValueEx = arg1.readInt();
            this.operValueEx2 = arg1.readInt();
            this.recordId = arg1.readLong();
            this.operStr = arg1.readString();
            return;
        }

        public /* const */_type: int=12023;

        public /* var */cmdType: int;

        public /* var */operObj: int;

        public /* var */operValue: int;

        public /* var */operValueEx: int;

        public /* var */operValueEx2: int;

        public /* var */recordId: number;

        public /* var */operStr: string;

        public static /* var */_regist: SOperationOnlineMsg;
    }

            SOperationOnlineMsg._regist = new SOperationOnlineMsg(true);
        